package com.huangfuyi.process.entity.running;

import com.huangfuyi.process.actuator.enums.EPNodeStatus;

public class EPRunningEntity {

    // 运行时id
    private String id;

    // 所属实例id
    private String instanceId;

    // 当前运行的节点id
    private String nodeId;

    // 开始时间
    private Long createTime;

    // 最后一次更新时间
    private Long updateTime;

    // 节点的运行状态
    private EPNodeStatus status;

    // 节点的运行时信息
    private String message;

    public EPRunningEntity() {
    }

    public EPRunningEntity(String id, String instanceId, String nodeId, EPNodeStatus status, String message) {
        this.id = id;
        this.instanceId = instanceId;
        this.nodeId = nodeId;
        this.status = status;
        this.message = message;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public EPNodeStatus getStatus() {
        return status;
    }

    public void setStatus(EPNodeStatus status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
